export default (viewer, cartographic, area) => {
    var lon = Cesium.Math.toDegrees(cartographic.longitude);
    var lat = Cesium.Math.toDegrees(cartographic.latitude);
    var radarArea = viewer.entities.add({
        polygon: {
            hierarchy: new Cesium.PolygonHierarchy(
                Cesium.Cartesian3.fromDegreesArray([
                    lon + area.x1 * 0.00001,
                    lat + area.y1 * 0.00001,
                    lon + area.x2 * 0.00001,
                    lat + area.y2 * 0.00001,
                    lon + area.x3 * 0.00001,
                    lat + area.y3 * 0.00001,
                    lon + area.x4 * 0.00001,
                    lat + area.y4 * 0.00001,
                ])
            ),
            height: 1.0,
            extrudedHeight: 1.0,
            outline: true,
            outlineColor: Cesium.Color.WHITE,
            outlineWidth: 4,
            material: Cesium.Color.fromBytes(49, 116, 104, 100),
            show: true
        }
    })
    return radarArea;
}